const mongoose = require('../helper/db')
const Schema = mongoose.Schema
// const Version = require('./version');

var noteSchema = new Schema({
    fileName: String,
    fileContent: String,
    downloadUrl: {
        type: String,
        unique: true
    },
    ownerId: String,
    isLock: Boolean,
    updateAt: {
        type: Date,
        default: Date.now
    },
    createAt: {
        type: Date,
        default: Date.now
    }
})

module.exports = mongoose.model('note', noteSchema)
